<% form.fields_for :settings, form.object.settings do |settings_fields| %>
  <div class="row column">
    <%= settings_fields.translated :text_field, :welcome_text, label: t(".welcome_text") %>
  </div>

  <div class="row column" data-controller="slug">
    <%= settings_fields.translated :text_field, :cta_button_path, label: t(".cta_button_path") %>
    <p class="help-text"><%= t(".cta_button_path_help", url: decidim_form_slug_url("", translated_attribute(form.object.settings.cta_button_path))) %></p>
  </div>

  <div class="row column">
    <%= settings_fields.translated :text_field, :cta_button_text, label: t(".cta_button_text") %>
    <p class="help-text"><%= t(".cta_button_text_help") %></p>
  </div>
<% end %>

<% form.fields_for :images, form.object.images do |images_fields| %>
  <div class="row column">
    <%= images_fields.upload :background_image, label: t(".background_image"), button_class: "button button__sm button__transparent-secondary" %>
  </div>
<% end %>
